home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
operation-graduates.swf
/
scripts
/
DefineSprite_958_frame
/
frame_2
/
DoAction.as
Wrap
Text File
|
2011-10-17
|
1KB
|
48 lines
this.back.gotoAndStop("inactive");
this.next.gotoAndStop("inactive");
this.play.gotoAndStop("inactive");
if(this.back.hitTest(_root._xmouse,_root._ymouse,false))
{
this.back.gotoAndPlay("active");
}
if(this.next.hitTest(_root._xmouse,_root._ymouse,false))
{
this.next.gotoAndPlay("active");
}
this.next.onDragOver = this.next.onRollOver = function()
{
this.gotoAndPlay("active");
_root.playSound("sound.rollover");
};
this.next.onDragOut = this.next.onRollOut = function()
{
this.gotoAndStop("inactive");
};
this.next.onPress = function()
{
_root.playSound("sound.onpress");
};
this.next.onRelease = function()
{
_parent.frame.nextFrame();
_root.playSound("sound.onrelease");
};
this.back.onDragOver = this.back.onRollOver = function()
{
this.gotoAndPlay("active");
_root.playSound("sound.rollover");
};
this.back.onDragOut = this.back.onRollOut = function()
{
this.gotoAndStop("inactive");
};
this.back.onPress = function()
{
_root.playSound("sound.onpress");
};
this.back.onRelease = function()
{
_root.playSound("sound.onrelease");
_parent.frame.prevFrame();
};